<!--$embed{"header.htm"}-->
<!--$if{ _SGLOBAL['guidemode']}-->
<!--$embed{"space_guide.htm"}-->
<!--$else-->
<!--$embed{"cp_header.htm"}-->
<!--$end-->
  <script type="text/javascript" >
  // 保存缩略图的地址.
  var saveUrl = '${request.contextPath}/saveavatar.html';
  // 保存摄象头白摄图片的地址.
  var cameraPostUrl = '${request.contextPath}/camera.html?uid=${space['uid']}';
  // 头像编辑器flash的地址.
  var editorFlaPath = '${request.contextPath}/common/avatar_test/AvatarEditor.swf';
  //上传头像成功跳转的路径
  var successUrl = '${request.contextPath}/cp.html?ac=avatar';
  </script>
  <script type="text/javascript" src="${request.contextPath}/template/default/cp_avatar.js"></script>
	<table cellspacing="0" cellpadding="0" class="formtable">
		<caption>
			<h2>当前我的头像</h2>
			<p>如果您还没有设置自己的头像，系统会显示为默认头像，您需要自己上传一张新照片来作为自己的个人头像。</p>
		</caption>
		<tr>
			<td>
				<img src="<!--${&com.heaven.web.utils.Common.avatar( space['uid'], 'big' )}-->" id="avatar" />
			</td>
		</tr>
	</table>

	<table cellspacing="0" cellpadding="0" class="formtable">
    <caption>
      <h2>设置我的新头像</h2>
      <p>
      <div style="padding:10px 0;color:#666;">你最好上传一张真人照片证明你是地球人，也可以  <a style="color:#cc3300;" href="javascript:void(0);" onclick="useCamera()">快使用摄像头，喝喝哈嘿！~</a></div>
      </p>
    </caption>
    <tr><td><div style="margin:0 auto;padding-top:5px;">
        <div>
          <form enctype="multipart/form-data" method="post" name="upform" target="upload_target" action="${request.contextPath}/upload.html?uid=${space['uid']}">
          <input type="file" name="avatarfile" id="Filedata"/>
          <input style="margin-right:20px;" type="submit" name="" value="上传形象照" onclick="return checkFile();" /><span style="visibility:hidden;" id="loading_gif"><img src="${request.contextPath}/common/avatar_test/loading.gif" align="absmiddle" />上传中，请稍侯......</span>
          </form>
          <iframe src="about:blank" name="upload_target" style="display:none;"></iframe>
          <div id="avatar_editor"></div>
        </div>
      </div></td>
    </tr>
  </table>
  
	<!--$if{ _SGLOBAL['guidemode']}-->
	<br>
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<td align="center">
		<input type="hidden" name="guidemode" value="1">
		<input type="submit" name="avatarsubmit" value="下一步" class="submit" />
		</td>
		<td align="right"><a href="space.html?do=home&view=guide&step=2">跳过&gt;&gt;</a></td>
	</tr>
	</table>
	<!--$end-->
<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" />
<!--$embed{"footer.htm"}-->
